SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwlRelPermisoRol
AS
SELECT dbo.tb_RelPermisosRoles.idpermiso AS id, dbo.tb_RelPermisosRoles.idRol, dbo.vwrPermisos.Descripcion
FROM  dbo.tb_RelPermisosRoles INNER JOIN
               dbo.vwrPermisos ON dbo.tb_RelPermisosRoles.idpermiso = dbo.vwrPermisos.idPermiso
GO
GRANT SELECT ON  [dbo].[vwlRelPermisoRol] TO [AdministracionSagenet]
GRANT SELECT ON  [dbo].[vwlRelPermisoRol] TO [SoloVer]
GO
